package com.lovo.exception;

import com.lovo.enums.StudentCodeEnum;
import com.lovo.enums.UserCodeEnum;
import lombok.Data;
import lombok.Getter;

/**
 * @title 学生异常
 * @author: luo
 * @date: 2020/11/20 22:14
 */
@Getter
public class StudentException extends RuntimeException{

    private StudentCodeEnum studentCodeEnum;

    public StudentException(StudentCodeEnum studentCodeEnum) {
        super(studentCodeEnum.getMsg());
        this.studentCodeEnum = studentCodeEnum;
    }
}
